package com.zjdiepu.www.manage.api.dh.view;

import javax.annotation.Resource;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zjdiepu.www.common.util.UUIDFactory;
import com.zjdiepu.www.commpent.ViewScopeControllerHelper;

@Controller
@RequestMapping(value= "DhInsteadPaymentApplyView", produces="application/json;charset=UTF-8")
@Api(tags = {""}, produces="application/json;charset=UTF-8")
public class DhInsteadPaymentApplyView {
	
	@Resource
	private ViewScopeControllerHelper viewScopeControllerHelper;
	
	@ApiOperation(value = "获取uuid", response = Boolean.class, httpMethod="GET", tags={""})
	@RequestMapping(value = "getUUID", method = RequestMethod.GET)
	public String getUUID(Model model,String busiId,String cusId,String applyId){
		String uuid=UUIDFactory.getUUID();
		model.addAttribute("uuid", uuid);
		model.addAttribute("busiId", busiId);
		model.addAttribute("cusId", cusId);
		model.addAttribute("applyId",applyId);
		viewScopeControllerHelper.preparedAttachmentEnum(model);
		return "system/loanAfter/kehusqDaiChang";
	}
}

